package org.bot.server.location.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;
import org.apache.ibatis.annotations.Select;
import org.bot.server.flow.entity.BotFlow;
import org.springframework.stereotype.Repository;

import java.util.Map;

/**
 * @author 沧月
 * @create 0021 2023/9/21 13:58
 * @description <description class purpose>
 */
@Mapper
@Repository
public interface ServerFlowInfoMapper extends BaseMapper<BotFlow> {

    @Select("update bot_client set status = #{status} where status != 3 and client_id = #{clientId}")
    void updateClientStatus(@Param("clientId") String clientId, @Param("status") Integer status);
}
